﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;
namespace UI
{
    public partial class SysSettingForm : KryptonForm
    {
        public SysSettingForm()
        {
            InitializeComponent();
        }

        private void Btn_Finish_Click(object sender, EventArgs e)
        {
            string myCroom = Tbox_CrCode.Text;            
            try
            {
                int crCode = Convert.ToInt32(myCroom);
                ConfigurationManager.AppSettings["MyClassRoom"] = crCode.ToString();
            }
            catch (InvalidCastException ex)
            {
                MessageBox.Show("输入格式不正确"+ex.Message.ToString());
            }
            string s = ConfigurationManager.AppSettings["MyClassRoom"];
            this.Close();
        }
    }
}
